<?php
/**
 * 积分 月统计
 */

namespace app\api\model;


use app\common\model\Model;
use think\db\Query;

class PointsMonStatistics extends Model
{
    const TABLE_NAME = 'points_mon_statistics';
    const CACHE_EXPIRE_LEVEL = self::CACHE_EXPIRE_LEVEL_4;

    protected $name = self::TABLE_NAME;

    public static function getUserMonInfo($user_id,$month)
    {
        return self::commonQuery(self::TABLE_NAME,self::CACHE_EXPIRE_LEVEL)
             ->where(['user_id'=>$user_id,'month'=>$month])
             ->find();
    }
    
}